export type ICallBack = {
    status: boolean,
    data: any,
    msg: string
}

export type IMessage = {
    type: string,
    content: any
}

export type IUser = {
    openid: string,
    nickname: string,
    gender: number,
    avatar: string
}

/**
 * status
 * 0 准备
 * 1 游戏中
 * 2 断线
 */
export type IUserBattle = IUser & { status?: number }

/**
 * status
 * 0 准备
 * 1 游戏中
 * 2 结算中
 */
export type IRoom = {
    id: string,
    password: string,
    players: IUserBattle[],
    status: number
}